package com.shanzhe.eshop.common.jdk;

/**
 * @Author yinwei
 * @create 2021/9/29
 * @Version 1.0
 */
public class TestLikedListDemo {

    public static void main(String[] args) {
        LikedListDemo<String> likedListDemo = new LikedListDemo<String>();
        likedListDemo.add("第一条");
        likedListDemo.add("第二条");
        likedListDemo.add("第三条");
        likedListDemo.add("第四条");
        final String s = likedListDemo.get(2);
        final String s1 = likedListDemo.removeFirst();
        System.out.println(s);
        System.out.println(s1);
        String sss = likedListDemo.get(2);
    }
}
